package cn.schtwz.baselib.binding

import android.annotation.SuppressLint
import androidx.databinding.BindingAdapter
import androidx.recyclerview.widget.RecyclerView
import java.util.concurrent.TimeUnit

@BindingAdapter("bind_recyclerView_adapter")
fun bindAdapter(
        recyclerView: RecyclerView,
        adapter: RecyclerView.Adapter<out RecyclerView.ViewHolder>?
) {
    adapter?.apply {
        recyclerView.adapter = adapter
    }
}
